package com.jf3q.sup.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jf3q.sup.domain.InboundShipments;
import com.jf3q.sup.dto.InboundShipmentsDto;
import com.jf3q.sup.service.InboundShipmentsService;
import com.jf3q.sup.mapper.InboundShipmentsMapper;
import com.jf3q.sup.vo.InboundShipmentsVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 */
@Service
public class InboundShipmentsServiceImpl extends ServiceImpl<InboundShipmentsMapper, InboundShipments>
    implements InboundShipmentsService{

    @Autowired
    InboundShipmentsMapper inboundShipmentsMapper;

    @Override
    public Page<InboundShipmentsVo> storagePage(InboundShipmentsDto inboundShipmentsDto) {
        Page<InboundShipmentsVo> page = new Page<>(inboundShipmentsDto.getPageNum(), inboundShipmentsDto.getPageSize());
        Page<InboundShipmentsVo> pages = inboundShipmentsMapper.storage(page, inboundShipmentsDto);
        return pages;
    }
}




